package com.hzhr.iot.meterplan.convertor;

import com.hzhr.iot.meterplan.convertor.custom.*;
import com.hzhr.iot.core.util.HzhrTypeUtil;
import com.hzhr.iot.core.util.HzhrJsonUtil;
import java.util.Map;
import com.hzhr.iot.meterplan.entity.RuhujihuaEntity;
import com.hzhr.iot.meterplan.entity.ext.RuhujihuaEntityExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.hzhr.iot.meterplan.model.meterPlan.MeterPlanPostModel;

@Component
public class RuhujihuaConvertor {
    @Autowired
    ChaobiaogongdanCustomConvertor chaobiaogongdanCustomConvertor;
    @Autowired
    YongqidizhiCustomConvertor yongqidizhiCustomConvertor;

    public RuhujihuaEntity meterPlanPostModel2entity(MeterPlanPostModel in) {
        //未转换字段: rhFjjhFlag rhYflx rhId rhDycbcsj rhZhuangtai rhYlBhBl rhJhsm rhJfFlag orgId rhCftzdySj rhAjjcRq rhZhcsRq rhXiaciCbRq rhCbndxs rhRqxztj rhZhuyi rhYlShSx rhYlJfXx rhCbr version rhJhzq cfId rhScl rhRhlxId rhJhpl rhJhrq rhYlShXx rhCsgdId veeId 
        if (in == null) return null;
        RuhujihuaEntity result = new RuhujihuaEntity();

        return result;
    }
    public RuhujihuaEntity meterPlanPostModel2entity(MeterPlanPostModel in, RuhujihuaEntity ori) {
        //未转换字段: rhFjjhFlag rhYflx rhId rhDycbcsj rhZhuangtai rhYlBhBl rhJhsm rhJfFlag orgId rhCftzdySj rhAjjcRq rhZhcsRq rhXiaciCbRq rhCbndxs rhRqxztj rhZhuyi rhYlShSx rhYlJfXx rhCbr version rhJhzq cfId rhScl rhRhlxId rhJhpl rhJhrq rhYlShXx rhCsgdId veeId 
        if (in == null) return null;
        RuhujihuaEntity result = ori;

        return result;
    }
    public List<RuhujihuaEntity> meterPlanPostModelList2entityList(List<MeterPlanPostModel> in) {
        if (in == null) return null;
        List<RuhujihuaEntity> result = new ArrayList<>();
        for (MeterPlanPostModel item : in) {
            result.add(meterPlanPostModel2entity(item));
        }
        return result;
    }
    public MeterPlanPostModel entity2meterPlanPostModel(RuhujihuaEntity in) {
        //未转换字段: accountPeriodId accountDay des planPeriodId statusId collectFrequencyId veeCheckId veeCheckDes accountFrequency typeId 
        if (in == null) return null;
        MeterPlanPostModel result = new MeterPlanPostModel();

        return result;
    }
    public List<MeterPlanPostModel> entityList2meterPlanPostModelList(List<RuhujihuaEntity> in) {
        if (in == null) return null;
        List<MeterPlanPostModel> result = new ArrayList<>();
        for (RuhujihuaEntity item : in) {
            result.add(entity2meterPlanPostModel(item));
        }
        return result;
    }
    public MeterPlanPostModel ext2meterPlanPostModel(RuhujihuaEntityExt in) {
        //未转换字段: accountPeriodId accountDay des planPeriodId statusId collectFrequencyId veeCheckId veeCheckDes accountFrequency typeId 
        if (in == null) return null;
        MeterPlanPostModel result = new MeterPlanPostModel();

        return result;
    }
    public List<MeterPlanPostModel> extList2meterPlanPostModelList(List<RuhujihuaEntityExt> in) {
        if (in == null) return null;
        List<MeterPlanPostModel> result = new ArrayList<>();
        for (RuhujihuaEntityExt item : in) {
            result.add(ext2meterPlanPostModel(item));
        }
        return result;
    }

}

